{extends file="./main.tpl"}
{block name=head}
{/block}
{block name=body}
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<center><h1><font size="6px">Total Loan Amount</font></h1></center>
<form name="totalLoan" method="post">
  <table border="0" align="center">
    <tr>
    	<th class="table1">Start Date  : </th>
      <td valign="bottom" class="table2">{html_select_date prefix='fromDate' field_order="DmY" month_format="%m" start_year='-20' end_year='+5' time="2001-01-01"}</td>
    </tr>
    <tr>
    	<th class="table1" valign="center">End Date : </th>
      <td valign="bottom" class="table2">{html_select_date prefix='toDate' field_order="DmY" month_format="%m" start_year='-5' end_year='+5' time=$today}</td>
    </tr>
    <tr>
      <td colspan="2"><input type="submit" name="dateSubmit" id="go" value="Go"></td>
    </tr>
  </table>
</form>
<br /><br />
<div>
  <table border="3" align="center" cellpadding="5" cellspacing="1">
    <tr style="background-color:#f2b844; border:3px;">
      <th><font size="5px">Total Amount</font></th>
      <th><font size="5px">Total Interest</font></th>
    </tr>
    <tr>
      <td align="right"><font size="4px"><b>{$totalAmountRow.totalAmount}</b></font></td>
      <td align="right"><font size="4px"><b>{$totalInterestRow.totalInterest}</b></font></td>
    </tr>
  </table>
</div>
{/block}